﻿using System.Windows.Controls;
using Synology.AudioStationApi;

namespace PartTwo
{
    /// <summary>
    /// Interaction logic for MainScreen.xaml
    /// </summary>
    public partial class MainScreen 
    {
        public MainScreen()
        {
            AudioStationSession audioStationSession = new AudioStationSession("xxxx.serveftp.com", 5000, "xxxx", "xxxx");
            IPlayerService playerService = new PlayerService(audioStationSession);            
            ISearchResultViewModelFactory searchResultViewModelFactory= new SearchResultViewModelFactory(playerService);
            ISearchService searchService = new SearchService(audioStationSession, searchResultViewModelFactory );
            DataContext = new MainScreenViewModel(searchService, playerService.Playlist);
            InitializeComponent();
        }
    }
}
